<?php

/**
 * default.php
 *
 * default application controller
 *
 * @package		ASfMVC
 * @author		Alex Snet
 */

class Default_Controller extends ASfMVC_Controller
{
  function index()
  {
  
  	// This is traditional way to set variable in template.
  	$this->view->assign('PAGE',$_SERVER['REQUEST_URI']);
  	
  	// And this is "magick" way.
  	// It's easy, but traditional way is most powerfull.
  	$this->view->TITLE = 'Default page of ASfMVC';
  	
  	$this->view->assign('Controller', ASMVC_MYAPPDIR . DS . 'controllers' . DS . 'default.php' );
  	$this->view->assign('View', ASMVC_MYAPPDIR . DS . 'views' . DS . 'index_view.php' );
  	
    $this->view->display('index_view');
  }
}

?>
